import request from '@/utils/request'

// 查询实践预约班级中间列表
export function listPracticeClass(query) {
  return request({
    url: '/training/practiceClass/list',
    method: 'get',
    params: query
  })
}

// 查询实践预约班级中间详细
export function getPracticeClass(practiceClassId) {
  return request({
    url: '/training/practiceClass/' + practiceClassId,
    method: 'get'
  })
}

// 新增实践预约班级中间
export function addPracticeClass(data) {
  return request({
    url: '/training/practiceClass',
    method: 'post',
    data: data
  })
}

// 修改实践预约班级中间
export function updatePracticeClass(data) {
  return request({
    url: '/training/practiceClass',
    method: 'put',
    data: data
  })
}

// 删除实践预约班级中间
export function delPracticeClass(practiceClassId) {
  return request({
    url: '/training/practiceClass/' + practiceClassId,
    method: 'delete'
  })
}
// 查询实践预约的学员预约情况
export function selectStudentsWhenAdd(query) {
  return request({
    url: '/training/practiceClass/selectStudents',
    method: 'get',
    params: query
  })
}

